﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Administrator/SystemManage.master" AutoEventWireup="true" CodeBehind="DetailMessage.aspx.cs" Inherits="CRMSalesManagement.Manage.FrontPageManagement.DetailMessage" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<style type="text/css">
        .divLine
        {
            margin-bottom: 0;
        }
        .title1
        {
            height: 25px;
            line-height:25px;
            text-align:right;
            width:120px
        }
        .content1
        {
            height: 25px;
            line-height:25px;
            text-align:left;
            width:656px;
        }
    </style>
 <div style=" font-size:12px">
        <!--第一行-->
       <script type="text/javascript" language="javascript">
           function Display(obj_a) {

               document.getElementById("replyHidden").style.display = "block";
               document.getElementById("SubHidden").style.display = "block";
               obj_a.style.display = "none";
           }

           function save() {
               if (document.getElementById("ContentPlaceHolder1_txtReply").innerHTML == "") {
                   document.getElementById("ContentPlaceHolder1_lblReply").innerHTML = "*回复内容不能为空";
               }
               else {
                   document.getElementById("ContentPlaceHolder1_lblReply").innerHTML = "";
                   document.getElementById("ContentPlaceHolder1_btnPutIn").click();
               }
           }
       </script>
            <div style="text-align: right; float: left; width:761px; height: 25px;background-color: #e2e2e1;padding-right:15px;height:25px; line-height:25px">
                <a href="javascript:" runat="server" id="replylink" onclick="Display(this)" >回复</a>
                &nbsp;<asp:LinkButton ID="lnkbtnDelete" runat="server" Font-Size="Small" OnClick="lnkbtnDelete_Click">删除</asp:LinkButton>
                &nbsp;<asp:LinkButton ID="lnkbtnPost" runat="server" Font-Size="Small" OnClick="lnkbtnPost_Click">发布</asp:LinkButton>
          
        </div>
        <table style="width: 776px;" cellspacing="10">
            <tr>
                <td class="title1">
                    访客姓名：
                </td>
               <td class="content1">
                    <asp:Label ID="lblVisitorName" runat="server" ></asp:Label>
                </td>
            </tr>
            <tr>
                <td  class="title1">
                    留言时间：
                </td>
                <td class="content1" >
                    <asp:Label ID="lblVisiteTime" runat="server" ></asp:Label>
                </td>
            </tr>
                <tr>
                <td class="title1">
                    留言状态：
                </td>
               <td class="content1">
                    <asp:Label ID="lblIsPublish" runat="server"  ></asp:Label>
                </td>
            </tr>            
            <tr>
                <td class="title1">
                    联系方式：
                </td>
                <td class="content1">
                    <asp:Label ID="lblVisitorContact" runat="server"  ></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="title1">
                    留言内容：
                </td>
                <td class="content1">
                    <div runat="server" id="divContentText" class="divContentText">
                    </div>
                </td>
            </tr>
            <tr>
                <td  class="title1">
                    <asp:Label ID="Label7" runat="server" Text="回复时间：" Width="100px"></asp:Label>
                </td>
               <td class="content1" >
                    <asp:Label ID="lblReplyTime" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td  class="title1">
                    <asp:Label ID="Label5" runat="server" Text="回复内容：" Width="100px"></asp:Label>
                </td>
                <td class="content1" >
                    <div runat="server" id="divReplyMessage" class="divContentText">
                    </div>
                </td>
            </tr>
            <tr id="replyHidden" style=" display:none;">
                <td class="title1">
                    <asp:Label ID="Label9" runat="server" Text="回复内容：" Width="100px"></asp:Label>
                </td>
                <td class="content1">
                    <asp:TextBox ID="txtReply" runat="server" Height="200px" TextMode="MultiLine" 
                        Width="621px" MaxLength="200"></asp:TextBox>
                    <asp:Label ID="lblReply" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
        <center>
        <div class="divLine" id="SubHidden" style="margin:auto auto; margin-bottom: 50px; display:none;margin:30px">
            <input id="btnSave" type="button" value="保存" onclick="save()" />
            <asp:Button ID="btnPutIn" runat="server" Text="保存" OnClick="btnPutIn_Click" style=" display:none;" Height="25px" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="重置" OnClick="btnCancel_Click" Height="25px" />
            &nbsp;
            <asp:Label ID="lblResults" runat="server" ForeColor="Red"></asp:Label>
        </div>
        </center>
    </div>
</asp:Content>
